/*
 * Copyright 2008-2012 Centro Andaluz de Innovación y Tecnologías de la
 * Información y las Comunicaciones (CITIC). All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 *
 * Please contact CITIC - Edificio CITIC, C/ Marie Curie, 6 Parque
 * Tecnológico de Andalucía 29590 - Campanillas, Málaga, Spain
 * or visit www.citic.es, if you need additional information or
 * have any questions.
 */

package es.citic.puedes.youtube.tables;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * The persistent class for the keyword database table.
 * 
 */
@Entity
@Table(name = "youtubemanager_keyword")
public class Keyword {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "keywordid")
	private Integer keywordid;

	@Column(name = "keywordname")
	private String keywordname;

	// bi-directional many-to-one association to Userkeyword
	@OneToMany(mappedBy = "keyword")
	private Set<Userkeyword> userkeywords;

	/**
	 * constructor with parameters
	 * 
	 * @param keywordname
	 *            keyword
	 */
	public Keyword(String keywordname) {
		this.keywordname = keywordname;
	}

	public Keyword() {
	}

	public Integer getKeywordid() {
		return this.keywordid;
	}

	public void setKeywordid(Integer keywordid) {
		this.keywordid = keywordid;
	}

	public String getKeywordname() {
		return this.keywordname;
	}

	public void setKeywordname(String keywordname) {
		this.keywordname = keywordname;
	}

	public Set<Userkeyword> getUserkeywords() {
		return this.userkeywords;
	}

	public void setUserkeywords(Set<Userkeyword> userkeywords) {
		this.userkeywords = userkeywords;
	}

}